id: atc title: Get Active ATC Frequencies meta: Overview of the ATC endpoint of the Infinite Flight Live API order: 7 contributor: KaiM,sqeezelemon #

Get Active ATC Frequencies #

Retrieve active Air Traffic Control frequencies for a session

Resource #

GET https://api.infiniteflight.com/public/v2/sessions/{sessionId}/atc

Authorization #

Include your API key (<apikey>) by either:

Parameters #

Name Located in Description Required Schema
sessionId path ID of the session returned from the Sessions endpoint Yes string (uuid)

Response #

Sample Response #

{
    "errorCode": 0,
    "result": [
        {
            "frequencyId": "c2d7decc-2803-c905-5d88-81bc07626b1f",
            "userId": "3f8b28bf-bbb1-4024-80ae-2a0ea9b30685",
            "username": "Cameron",
            "virtualOrganization": null,
            "airportName": "LEPA",
            "type": 1,
            "latitude": 39.551575,
            "longitude": 2.736811,
            "startTime": "2020-10-02 15:47:25Z"
        }
    ]
}

LiveAPIResponse #

Response Type: application/json

Name Type Description
errorCode integer Enum: "Ok = 0", "UserNotFound = 1", "MissingRequestParameters = 2", "EndpointError = 3", "NotAuthorized = 4", "ServerNotFound = 5", "FlightNotFound = 6", "NoAtisAvailable = 7"
result [ActiveATCFacility] Array of ActiveATCFacility objects

ActiveATCFacility #

Name Type Description
frequencyId string (uuid) Unique identifier for the open frequency
userId string (uuid) Unique identifier for the user controlling the frequency
username string The user’s forum username if the account is linked. If the account isn’t linked, this will be null
virtualOrganization string (not currently in use)
airportName string The 4-character ICAO identifier for the airport. null for center
type integer The type of frequency opened - not all of these are in use. Enum: "Ground = 0", "Tower = 1", "Unicom = 2", "Clearance = 3", "Approach = 4", "Departure = 5", "Center = 6", "ATIS = 7", "Aircraft = 8", "Recorded = 9", "Unknown = 10", "Unused = 11"
latitude float Decimal latitude of the airport
longitude float Decimal longitude of the airport
startTime string Time at which the frequency was opened, in the following format: YYYY-MM-DD HH:mm:ssZ